package com.ssy.lingxi.report.entity.report;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  采购日报统计表
 *  [统计采购金额、次数、询价次数、招标次数、竞价次数]
 * @author ds
 * @date 2021/7/3
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "rep_purchase_day_report", indexes = {@Index(name = "rep_purchase_day_report_date_time_idx", columnList = "dateTime")})
public class PurchaseDayReportDO implements Serializable {

    private static final long serialVersionUID = -2635703752585609110L;

    public PurchaseDayReportDO() {
        this.num = 0L;
        this.amount = 0D;
        this.inquiryNum=0L;
        this.inviteTenderNum=0L;
        this.biddingNum=0L;
    }

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "purchase_day_report_seq")
    @SequenceGenerator(sequenceName = "rep_purchase_day_report_seq", name = "purchase_day_report_seq", allocationSize = 1)
    private Long id;

    /**
     * 会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 日期时间
     */
    @Column(columnDefinition = "timestamp")
    private LocalDateTime dateTime;

    /**
     * 采购金额
     */
    @Column(columnDefinition = "decimal")
    private Double amount;

    /**
     * 采购数量
     */
    @Column(columnDefinition = "int4")
    private Long num;
    /**
     * 询价次数
     */
    @Column(columnDefinition = "int4")
    private Long inquiryNum;
    /**
     * 招标次数
     */
    @Column(columnDefinition = "int4")
    private Long inviteTenderNum;
    /**
     * 竞价次数
     */
    @Column(columnDefinition = "int4")
    private Long biddingNum;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getInquiryNum() {
        return inquiryNum;
    }

    public void setInquiryNum(Long inquiryNum) {
        this.inquiryNum = inquiryNum;
    }

    public Long getInviteTenderNum() {
        return inviteTenderNum;
    }

    public void setInviteTenderNum(Long inviteTenderNum) {
        this.inviteTenderNum = inviteTenderNum;
    }

    public Long getBiddingNum() {
        return biddingNum;
    }

    public void setBiddingNum(Long biddingNum) {
        this.biddingNum = biddingNum;
    }
}
